Companion

object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun default(allowableIds: AllowableIdentifiers): EntryValidator<Identifier>

builds a String EntryValidator with default behavior

Link copied to clipboard
fun <T> ofDynamicKey(key: RegistryKey<out Registry<T>>, predicateId: String, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofDynamicKey(defaultValue: Identifier, key: RegistryKey<out Registry<T>>, predicateId: String, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofDynamicKey(defaultValue: Identifier, key: RegistryKey<out Registry<T>>, predicateId: String, predicate: Predicate<RegistryEntry<T>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable registry of values, defined from a RegistryKey

Link copied to clipboard
fun ofList(list: List<Identifier>): ValidatedIdentifier
fun ofList(defaultValue: Identifier, list: List<Identifier>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable list of values

Link copied to clipboard
fun <T> ofRegistry(registry: Registry<T>): ValidatedIdentifier
fun <T> ofRegistry(defaultValue: Identifier, registry: Registry<T>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable registry of values

fun <T> ofRegistry(registry: Registry<T>, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofRegistry(registry: Registry<T>, predicate: Predicate<RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofRegistry(defaultValue: Identifier, registry: Registry<T>, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofRegistry(defaultValue: Identifier, registry: Registry<T>, predicate: Predicate<RegistryEntry<T>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable registry of values, filtered by the provided predicate

Link copied to clipboard
fun <T> ofRegistryKey(key: RegistryKey<out Registry<T>>): ValidatedIdentifier
fun <T> ofRegistryKey(key: RegistryKey<out Registry<T>>, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofRegistryKey(defaultValue: Identifier, key: RegistryKey<out Registry<T>>, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedIdentifier
fun <T> ofRegistryKey(defaultValue: Identifier, key: RegistryKey<out Registry<T>>, predicate: Predicate<RegistryEntry<T>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable registry of values, defined from a RegistryKey

fun <T> ofRegistryKey(defaultValue: Identifier, key: RegistryKey<out Registry<T>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable registry of values, defined from a RegistryKey. This can find both static and dynamic registries

Link copied to clipboard
fun <T : Any> ofRegistryTags(key: RegistryKey<out Registry<T>>): ValidatedIdentifier
fun <T : Any> ofRegistryTags(default: TagKey<T>, key: RegistryKey<out Registry<T>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on the existing TagKey stream from the registry defined by the supplied RegistryKey

fun <T : Any> ofRegistryTags(key: RegistryKey<out Registry<T>>, predicate: Predicate<Identifier>): ValidatedIdentifier
fun <T : Any> ofRegistryTags(default: TagKey<T>, key: RegistryKey<out Registry<T>>, predicate: Predicate<Identifier>): ValidatedIdentifier

Builds a ValidatedIdentifier based on the existing TagKey stream from the registry defined by the supplied RegistryKey, and predicated by the provided predicate

Link copied to clipboard
fun ofSuppliedList(listSupplier: Supplier<List<Identifier>>): ValidatedIdentifier
fun ofSuppliedList(defaultValue: Identifier, listSupplier: Supplier<List<Identifier>>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable list of values

Link copied to clipboard
fun <T> ofTag(tag: TagKey<T>): ValidatedIdentifier
fun <T> ofTag(defaultValue: Identifier, tag: TagKey<T>): ValidatedIdentifier

Builds a ValidatedIdentifier based on an allowable tag of values

Link copied to clipboard
fun strong(allowableIds: AllowableIdentifiers): EntryValidator<Identifier>

builds a String EntryValidator with always-strong behavior

Link copied to clipboard
fun <T> List<T>.supply(): Supplier<List<T>>

wraps a list in a Supplier